<template>
  <van-tabbar v-model="active">
  <van-tabbar-item name="home" icon="/images/zhaofang1.png" v-if="active=='home'"><router-link to="/">首页</router-link></van-tabbar-item>
  <van-tabbar-item name="home" icon="/images/zhaofang2.png" v-else><router-link to="/">首页</router-link></van-tabbar-item>
  <van-tabbar-item name="faxian" icon="/images/faxian1.png" v-if="active=='faxian'"><router-link to="/">zhaofang</router-link></van-tabbar-item>
  <van-tabbar-item name="faxian" icon="/images/faxian2.png" v-else><router-link to="/">zhaofang</router-link></van-tabbar-item>
  <van-tabbar-item name="friends" icon="friends-o">标签</van-tabbar-item>
  <van-tabbar-item name="setting" icon="setting-o">标签</van-tabbar-item>
</van-tabbar>
</template>
<script>
export default {
  data() {
    return {
      active: 'home',
    }
  },
}
</script>